<!--
 * @Description: 字体
 * @Author: rendc
 * @Date: 2021-08-06 14:21:36
 * @LastEditors: rendc
 * @LastEditTime: 2021-08-06 17:23:03
-->
<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <link rel="stylesheet" href="https://at.alicdn.com/t/font_1766379_iwnil6jpvf.css">
  <title>字体</title>
  <style>
    @font-face {
      font-family: myFont1;
      src: url('./font/myFont1.ttf');
    }

    /* .app {
      font-size: 20px;
      padding: 2em;
    } */
    .app {
      background-color: tomato;
      width: 50%;
      font-size: 20px;
      padding: 1rem;
      /* 有衬线的字体 */
      /* font-family: serif; */
      /* 无衬线的字体 */
      /* font-family: sans-serif; */
    }

    .myPClass2 {
      /* font-family: sans-serif; */
      /* 等宽字体 */
      /* font-family: monospace; */
      /* 草书 */
      /* font-family: cursive; */
      /* 梦幻装饰 */
      /* font-family: fantasy; */
      /* font-family: 微软雅黑; */
      /* font-family: 宋体; */
      /* 字体栈 */
      font-family: fantasy, cursive, '宋体', '微软雅黑';
    }

    .myPClass1 {

      /* font-family: myFont1; */
      /* 斜体 */
      /* font-style: italic; */
      /* 模拟斜体 */
      /* font-style: oblique; */
      font-weight: 100;
      text-transform: full-width;
    }
  </style>
</head>

<body>
  <div class="app">

    <p id="myP" class="myPClass1">
      明月几时有，自己抬头瞅 asaa
    </p>
    <p class="myPClass2">
      明月几时有，自己抬头瞅
    </p>
    <i class="iconfont icon-xiangji"></i>
  </div>

</body>

</html>